package factory;

import constants.SMSConstants;
import model.Contract;
import model.Lead;
import model.Opportunity;
import model.SMSObject;

public class SMSObjectFactory {
	
	
	public SMSObject createSMSObject(String smsObjectType){
		
		if(smsObjectType.equals(SMSConstants.LEAD))
			return new Lead();
		else if(smsObjectType.equals(SMSConstants.OPPORTUNITY))
			return new Opportunity();
		else if(smsObjectType.equals(SMSConstants.CONTRACT))
			return new Contract();
		
		return null;
		
	}

}
